package com.fac.constant;

import com.baomidou.mybatisplus.annotation.IEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户类型枚举
 */
@ApiModel(description = "用户类型枚举")
public enum UserType implements IEnum<String> {
    @ApiModelProperty("工人")
    WORKER("工人"),
    @ApiModelProperty("租方工厂")
    RENTAL_FACTORY("租方工厂"),
    @ApiModelProperty("借方工厂")
    BORROWING_FACTORY("借方工厂"),
    @ApiModelProperty("维修方工厂")
    REPAIR_FACTORY("维修方工厂"),
    @ApiModelProperty("管理员")
    ADMIN("管理员");

    private final String value;

    UserType(String value) {
        this.value = value;
    }

    @Override
    public String getValue() {
        return value;
    }
}